<?php

if (self::can($user, 1)) {
    echo '
    <div>
        <div class="panel_addmsg">
            <form action="'.$_SERVER['REQUEST_URI'].'" method="POST" enctype="multipart/form-data" style="margin-top: 8px;">
                <input type="text" name="title" value="" placeholder="Название для URL" class="input_text" pattern="[a-z]+" required><br>
                <input type="text" name="full_title" value="" placeholder="Полное название" class="input_text" pattern="[A-Za-zА-Яа-яЁё0-9\s]+" required><br>
                <input type="text" name="description" value="" placeholder="Описание" class="input_text" pattern="[A-Za-zА-Яа-яЁё0-9\s]+" required><br>
                <input type="file" name="thumb" value=":)" class="input_text" required><br>
                <input type="submit" name="add_category" value="Добавить категорию" class="button_login"><br>
            </form>
        </div>
    </div>
    ';
}
?>
